package com.orange.mapper;


import com.orange.domain.User;
import com.orange.dto.UserDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User login(@Param("username") String username, @Param("password") String password);


    List<User> queryAllUser(@Param("userDto") UserDto userDto);

    List<User> queryAvailableUser();

    List<String> queryEmail(@Param("idList") List<Integer> idList);
}